package com.sinoglobal.dumping.bean;

import java.io.Serializable;

/**
 * Created by KeZhuang on 2015/10/28.
 */
public class Dumpling_BaseVo implements Serializable {
    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    
	// 分页的显示条数
	public static int pagesize;
	// 分页的页码
	public static int page;
	// 是否还有更多数据
	private static boolean isLoadMoreData = true;

	/**
	 * 初始化刷新页码等数据
	 */
	public static void  initPageData(){
		isLoadMoreData = true;
		pagesize= 10;
		page=1;
	}
	public static boolean isLoadMoreData() {
		return isLoadMoreData;
	}

	public static void setLoadMoreData(boolean isMoreData) {
		isLoadMoreData = isMoreData;
	}

	/**
	 * 下一页，页码
	 * 
	 * @return
	 */
	public static int nextPage() {
		return ++page;
	}
    
}
